#include <stdio.h>

int main() {
	int x = 2;
	int number;
	int n;
	int sum = 0;

	while ( sum < 100) {
		number = 1;
		n = 2;
		for (; n < x; n++) {
			number = 1;
			if (x % n == 0) {
				number = 0;
				break;
			}
		}
		if (number == 1) {
			printf("%d\n", x);
			sum++;
		}
		x++;
	}

	return 0;
}